﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EasyDLL.Web
{
    /// <summary>
    /// 对Request常用操作的一些封装
    /// </summary>
    public class RequestWrapper
    {
        /// <summary>
        /// 获得不带参数的url
        /// </summary>
        /// <param name="url">带参数或者不带参数的url</param>
        /// <returns></returns>
        public static string GetUrlWithoutParameter(string url)
        {
            if (url.IndexOf('?') < 0)
            {
                return url;
            }
            else
            {
                return url.Split('?')[0];
            }
        }
    }
}
